package com.xs.ahoi.hcxs.model.vo;

/**
 * author: cdfuhuichao
 * date: 2019/2/14 16:18
 * description: 搜索结果对象
 */
public class SearchDataVo {

    // 起始下标
    private int index;

    // 显示文字
    private String text;

    // 进度百分比
    private String percent;

    // text文字中匹配的文字的下标
    private int matchIndex;

    // 搜索的文字
    private String searchText;

    public SearchDataVo(int searchMbbIndex, String words, String percent, String searchText, int matchIndex) {
        this.index = searchMbbIndex;
        this.text = "..." + words + "...";
        this.percent = percent;
        this.matchIndex = matchIndex + 3;
        this.searchText = searchText;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getPercent() {
        return percent;
    }

    public void setPercent(String percent) {
        this.percent = percent;
    }

    public int getMatchIndex() {
        return matchIndex;
    }

    public void setMatchIndex(int matchIndex) {
        this.matchIndex = matchIndex;
    }

    public String getSearchText() {
        return searchText;
    }

    public void setSearchText(String searchText) {
        this.searchText = searchText;
    }
}
